package com.pureland.demo.domain.req;

/**
 * @projectName: pureland_cloud
 * @className: com.pureland.demo.domain.req.QueryDTO
 * @description: 分页查询参数实体类
 * @author: tong.li
 * @createTime: 2020/10/19 10:51
 * @version: v1.0
 * @copyright: 版权所有 李彤 © 2020
 */
public class QueryDTO {


    /**
     *  是否启用分页,默认分页
     */
    private boolean enable = true;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 查询的页数，默认查询第1页
     */
    private Integer page = 1;

    /**
     * 查询的页条数，默认每页查询10条数据
     */
    private Integer pageSize = 10;

    /**
     * 开启时间段查询
     */
    private String beginTime;

    /**
     * 结束时间段查询
     */
    private String endTime;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
